<%= form_for [:admin, @deposit_preference], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">
      <%= @deposit_preference.new_record? ? "新增充值优惠规则" : "修改充值优惠规则" %>
    </h3>
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">充值满多少</label>
          <%= f.number_field :full_money, class: "form-control" %>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">送多少</label>
          <%= f.number_field :bonus, class: "form-control" %>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">是否可用</label>
          <div class="custom-controls-stacked">
            <label class="custom-control custom-checkbox">
              <%= f.check_box :published, class: "custom-control-input" %>
              <span class="custom-control-label">勾选可用</span>
            </label>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <%= f.submit "保 存", class: "btn btn-primary" %>
  </div>
<% end %>